<!DOCTYPE html>
<html>
	<head>
		<style type="text/css">
			#box{width: 300px;overflow: hidden;position: relative;}
			.close{position: absolute;top: 0;right: 0;}
		</style>
		<script src="Public/Admin/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function(){
				$('.close').click(function(){
					$('#box').html('<input id="exampleInputEmail1" type="file"  name="blogo">');
				})
			})
		</script>

		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="./Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="./Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="./Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="./Public/Admin/Flat/img/favicon.ico">
	</head>
	<body>
		<form action="" method="post" enctype="multipart/form-data">
		<div class="alert alert-success">编辑商品</div>
		<div class="form-group">
			<label for="exampleInputEmail1">品牌标题</label>
			<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入分类名称" required="" name="bname" value="{{$oldData['bname']}}">
		</div>		
		<div class="form-group">
			{{if value="!empty($oldData['blogo'])"}}
			<label for="exampleInputEmail1">品牌logo</label><br />
			<div id="box">
				<img src="{{$oldData['blogo']}}" alt="" width="200" height="150"/><span class="fui-cross close"></span>

				<input type="hidden"  name="blogo" value="{{$oldData['blogo']}}"/>
				{{else}}
				<input id="exampleInputEmail1" type="file" required="" name="blogo">
				{{endif}}
			</div>
				
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">排序</label>
			<input id="exampleInputEmail1" class="form-control" type="text"  required="" name="bsort" value="{{$oldData['bsort']}}">
		</div>
		
		<div id="">
			
			<br />
			<label class="checkbox checkbox-inline" for="checkbox1">
				<input id="checkbox1" class="custom-checkbox" type="checkbox" data-toggle="checkbox" value="{{$oldData['hot']}}" checked="checked" name="hot">
				<span class="icons">
				<span class="icon-unchecked"></span>
				<span class="icon-checked"></span>
				</span>
				是否热门
			</label>
		</div>
		<div class="form-group">
			
		<input type="hidden" name="bid" value="{{$_GET['bid']}}" />
		<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
		</form>
	</body>
</html>
